package cl.blueprintsit.teaching.inheritance;

/**
 * La responsabilidad de esta clase es de dar una implementacion concreta a un
 * circulo.
 * 
 * @author andres
 *
 */
public class Circle {

	/**
	 * Radio del circulo
	 */
	float radius;

	/**
	 * Coordenada del centro del punto
	 */
	IPoint origin;

	public Circle(float radius, IPoint origin) {
		this.radius = radius;
		this.origin = origin;
	}

	/**
	 * This method is responsible for determining if the circle is in the
	 * origin.
	 * 
	 * @return <code>true</code> if the circle is in the center and
	 *         <code>false</code> otherwise.
	 */
	public boolean isOrigin() {
		return origin.isOrigin();
	}
}
